package kr.hkit.powerjava.algorithm;

public class StackTest{
	public static void main(String[] args) {
		Stack stack = new Stack(3);
		stack.push("a");
		stack.push("b");
		
		System.out.println("Pop " + stack.pop());
		stack.prnStack();
		System.out.println("Pop " + stack.pop());
		stack.prnStack();
		System.out.println("Pop " + stack.pop());
		
		for(int i =0; i<3;i++){
			System.out.println("Pop"+stack.pop());
			stack.prnStack();
		}
		
		for(int i = 97 ; i<100 ; i++){
			stack.push(String.format("%c", i));
			stack.prnStack();
		}
	}
}
